


def paixun(li):
    for i in range(len(li)):
        for j in range(0,i):
            if li[i] > li[j]:
                li[i],li[j]=li[j],li[i]
    return li
def guixupaixu(li):
    for i in range(len(li)//2):
        if li[i]<li[len(li)//2]:
            li[i],li[len(li)//2]=li[len(li)//2],li[i]
    return li

if __name__ == '__main__':
    li=[1,4,2,33,2,4,21]
    ali=guixupaixu(li)
    print(ali)